# python版pdf转word
# 可以转图片，但页数会变多30页–>50页
# java 运行python脚本
# https://www.cnblogs.com/dhName/p/15582054.html

# pip install pdf2docx #安装依赖库
# https://www.jb51.net/article/210757.htm
# 运行：python F:\学习项目\java-learn-demo\java-tools\src\main\java\pdf\PdfToDocx0.py
from pdf2docx import Converter

pdf_file = r'G:\黑马资料java视频教程2021\资料-2022MySQL数据库\文档\MySQL-运维篇.pdf'
docx_file = r'G:\黑马资料java视频教程2021\资料-2022MySQL数据库\文档\MySQL-运维篇-4.docx'

cv = Converter(pdf_file)
cv.convert(docx_file, start=0, end=None)
cv.close()